package com.wkr.service.Impl;

import com.wkr.service.IWebService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService(targetNamespace="http://service.wkr.com/")//这是保证发布的接口targetname与namespace一致或者将接口与实现类在同一包
public class webServiceImpl implements IWebService {

    private static final Logger log = LoggerFactory.getLogger(webServiceImpl.class);

    private String returnStr = "o^o";

    @Override
    @WebMethod(operationName = "say")
    public String say() {
        log.info("Hello World!");
        return returnStr;
    }
}
